import service from '@/utils/request'

export const useJt809userApi = (id: number) => {
  return service.get('/gps/jt809_user/' + id)
}

export const useJt809userSubmitApi = (dataForm: any, edit: boolean) => {
  if (edit) {
    return service.put('/gps/jt809_user', dataForm)
  } else {
    return service.post('/gps/jt809_user', dataForm)
  }
}
